import React from 'react';
import {Link} from 'react-router-dom';
export default class Main extends React.Component {
  render(){
    return (
      <div>
        <span>Main</span><br/>
        <Link to="/main/test-id">嵌套路由1</Link> <br/>
        <Link to="/main/456">嵌套路由2</Link> <br/>
        <Link to="/main/764">嵌套路由3</Link> <br/>
        <hr/>
        {this.props.children}
      </div>
    )
  }
}